Context Switching Visualizer

1. Process Execution: The active process moves to the CPU.
2. Switch Initiated: A request to switch to another process is made.
3. Save State: The current context is saved to its PCB as the process moves away.
4. Load State: The new context is loaded from its PCB as the new process moves in.
5. New Process Execution: The CPU resumes with the new process.

CPU Registers

R1: 0x0000
R2: 0x0000
PC: 0x0000
SP: 0x0000
Active Process
EXECUTING